package com.song.api.controller.user;

import com.song.grace.result.GraceJSONResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

@Api(value = "用户管理相关接口", tags = {"用户管理相关功能controller"})
@RequestMapping("appUser")
public interface AppUserMngControllerApi {


    @ApiOperation(value = "查询所有用户", notes = "查询所有用户方法", httpMethod = "POST")
    @PostMapping("queryAll")
    public GraceJSONResult queryAll(@RequestParam String nickname,
                           @RequestParam Integer status,
                           @RequestParam Date startDate,
                           @RequestParam Date endDate,
                           @RequestParam Integer page,
                           @RequestParam Integer pageSize);

    @ApiOperation(value = "查看用户详情信息", notes = "查看用户详情信息", httpMethod = "POST")
    @PostMapping("userDetail")
    public GraceJSONResult userDetail(@RequestParam String userId);

    @PostMapping("freezeUserOrNot")
    @ApiOperation(value = "冻结用户，或解除封号", notes = "冻结用户，或解除封号", httpMethod = "POST")
    public GraceJSONResult freezeUserOrNot(@RequestParam String userId, @RequestParam Integer doStatus);

}
